import request from '@/utils/request'

// 查询NVR列表
export function listNvr(query) {
  return request({
    url: '/video/nvr/list',
    method: 'get',
    params: query
  })
}

// 查询NVR详细
export function getNvr(id) {
  return request({
    url: '/video/nvr/' + id,
    method: 'get'
  })
}

// 新增NVR
export function addNvr(data) {
  return request({
    url: '/video/nvr',
    method: 'post',
    data: data
  })
}

// 修改NVR
export function updateNvr(data) {
  return request({
    url: '/video/nvr',
    method: 'put',
    data: data
  })
}

// 删除NVR
export function delNvr(id) {
  return request({
    url: '/video/nvr/' + id,
    method: 'delete'
  })
}
